﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GlobalSessionValue.aspx.cs" Inherits="ZLCMS.Web.Example.GlobalSessionValue" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    若web.config的sessionState设置为 mode="StateServer"，需要启动AspnetState服务，该服务状态为【<asp:Label ID="Label1" runat="server"></asp:Label>】
    <asp:Button ID="Button1" runat="server" Text="启动服务" onclick="Button1_Click" /><br /><br />全局的SESSION值，避免重复使用：<br /><br />    
    
<table border="1" cellspacing="1" cellpadding="1">
  <tr>
    <td>用户帐户、用户权限信息</td>
    <td>【<%= ZLCMS.Business.Util.GlobalSessionString.UserAccountInfo %>】</td>
    <td>【<%= Session[ZLCMS.Business.Util.GlobalSessionString.UserAccountInfo] %>】</td>
  </tr>
  <tr>
    <td>验证码信息</td>
    <td>【<%= ZLCMS.Business.Util.GlobalSessionString.UserCheckCode %>】</td>
    <td>【<%= Session[ZLCMS.Business.Util.GlobalSessionString.UserCheckCode]%>】</td>
  </tr>
</table>

    </div>
    </form>
</body>
</html>
